import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Proudce, ProduSchema } from './Schema/produce.schema'
import { ProduceService } from './Service/produce.service'
import { ProduceController } from './Controller/produce.controller'
import { Types,TypesSchema} from './Schema/Types.schema'
import { TypesController } from './Controller/Types.controller'
import { TypesService } from './Service/Types.service'
import { MaxController } from './Controller/max.controller'
import { MaxService } from './Service/max.service'
import { Max,MaxSchema} from './Schema/max.schema'

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: Proudce.name, schema: ProduSchema, collection: 'Proudce' },
            { name: Types.name, schema: TypesSchema, collection: 'Type' },
            { name: Max.name, schema: MaxSchema, collection: 'Max' }
        ]),
    ],
    controllers: [ProduceController,TypesController,MaxController],
    providers: [ProduceService,TypesService,MaxService],
})
export class ProduceModule {
}